// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "MyCrossHairWidget.generated.h"

class UImage;
class UTexture2D;
/**
 * 
 */
UCLASS()
class MYPROJECT2_API UMyCrossHairWidget : public UUserWidget
{
	GENERATED_BODY()
	
	virtual void NativeConstruct() override;

	UPROPERTY(meta = (BindWidget))
	class UImage* CrossHairImage;

public:
	void UpdateCrossHair(bool HitSpecialTarget);
	void ResetCrossHair();
	FVector2D GetCrossHairScreenPosition();

private:
	// Two Texture
	UTexture2D* CrossHair_Image_Big;
	UTexture2D* CrossHair_Image_Small;

	// Update TimeHandel
	FTimerHandle ResetTimerHandle;
	
};
